package com.cyzy.service.impl;

import com.cyzy.mapper.ActivityMapper;
import com.cyzy.pojo.Activity;
import com.cyzy.service.ActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zxw
 * @create 2025-06-05 上午12:25
 */
@Service
public class ActivityServiceImpl implements ActivityService {
    @Autowired
    private ActivityMapper activityMapper;

    @Override
    public List<Activity> notStartActivity(String campusId) {
        List<Activity> list = activityMapper.notStartActivity(campusId);
        return list;
    }

    @Override
    public List<Activity> startActivity(String campusId) {
        List<Activity> list = activityMapper.startActivity(campusId);
        return list;
    }

    @Override
    public List<Activity> endActivity(String campusId) {
        List<Activity> list = activityMapper.endActivity(campusId);
        return list;
    }
}
